#pragma once
#include"HashTable.h"

namespace to_use
{
	template<class K>
	class unordered_set
	{
	public:

		struct SetKeyOfT
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};

		typedef typename HashTable<K, K, SetKeyOfT, HashFunc<K>>::iterator iterator;

		iterator begin()
		{
			return hash.begin();
		}

		iterator end()
		{
			return hash.end();
		}

		bool insert(const K& key)
		{
			return hash.insert(key);
		}
	private:
		HashTable<K, K, SetKeyOfT>hash;
	};
}